home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_30.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  148KB  |  816x1056  |  8-bit (256 colors)
OCR: *AJA RH ABLES Beginners Guide To Macintosh Assembly Language Programming Page WINDOW TITL E: DC.B EXAMPLE > WINDOW HANDLE DS.L OF EXAMPL There are five new lines. The first line initialises the cur sor as in example one The next lines call a subroutine open window that displays our window on the screen. LEA WINDOW TITLE, A0 Open window has to know the title of the window IT expects the address of the title string in A0 At the bottom of the program are the variables. Here WINDOW TITLE is defined by using the dc.b (define constant bytes) directive. This tells Fantasm to store this string in memory and give it the name WINDOW TITLE" When we want to use this string in our program, we can simply use its name. Note that the string terminated zero byte, and the actua characters of the string are ...